<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>银行卡详情</h2>
    </div>
    <form action="{:U('FuturesUser/bank')}" method="post" class="form-horizontal">
        <input type="hidden" name="id" value="{$list.id}">
        <input type="hidden" name="user_id" value="{$ages.id}">
        <div class="form-item">
            <label class="item-label">用户名称<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" readonly name="nickname" value="{$ages.nickname}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">银行卡名称<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="bank_realname" value="{$list.bank_realname}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">身份证号码<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="id_card" value="{$list.id_card}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">银行卡账号<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="bank_card" value="{$list.bank_card}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">银行名称<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="bank_name" value="{$list.bank_name}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">省会<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="pro_name" value="{$list.pro_name}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">城市名称<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="city_name" value="{$list.city_name}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">开户银行地址<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="outlets_name" value="{$list.outlets_name}">
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
            <div class="btn submit-btn" id = "bank_delete" data = "{$list.id}">删除银行卡</div>
        </div>
    </form>
</block>

<block name="script">
    <link href="__STATIC__/datetimepicker/css/datetimepicker.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
    <php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">';</php>
    <link href="__STATIC__/datetimepicker/css/dropdown.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js?v={:SITE_VERSION}" charset="UTF-8"></script>
    <script type="text/javascript">
        $('#begin_time,#end_time').datetimepicker({
            format: 'yyyy-mm-dd h:i:s',
            language:"zh-CN",
            minView:2,
            autoclose:true
        });
        $("#bank_delete").click(function(){
          if(confirm("确定删除银行卡吗？")){
            var id = $(this).attr('data');
            var url = "{:U('FuturesUser/bank_delete')}";
            url =  url.substr(0,url.lastIndexOf('.'))+"/id/"+id;
            window.location.href = url;
          }
        })
        //导航高亮
        $('.side-sub-menu').find('a[href="{:U('FuturesUser/index')}"]').closest('li').addClass('current');
    </script>
</block>
